package com.class2;

import org.junit.Test;

import java.util.Scanner;

public class GetNumb {
    public int getNub(int x, int y){
//    public static int getNub(int x, int y){
        int z=1;
        int ret = 0;
        if(x<0){
            z=y-z;
        }else {
            z=y+x;
        }

        if (z>10&&y>0){
            ret = z*y;
        }else {
            ret=z*x;
        }

        return ret;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (true){
            int x=in.nextInt();
            int y=in.nextInt();
//            int nub = getNub(x, y);
            GetNumb getNumb = new GetNumb();
            int nub1 = getNumb.getNub(x, y);
//            System.out.println("测试结果是：\n"+"输入的x是："+x+"\t输入的y是："+y+"\t产生的结果是："+nub);
            System.out.println("测试结果是：\n"+"输入的x是："+x+"\t输入的y是："+y+"\t产生的结果是："+nub1);
        }
    }
}
